package cn.brilliantfuture.commentry.operate;

import javax.ejb.Remote;

/**
 * 
 * Title: Communication Entry
 * 
 * Author:  LiTian  
 *
 * Date: 2011-11-15
 * 
 * Description: 查询信息远程接口
 * 
 */
@Remote
public interface QueryMessageRemote {
	
	/**
	 * 配送仓关闭
	 */
	public static final String SETGRIDID_CLOSE = "SETGRIDID_CLOSE";

	/**
	 * 配送仓打开
	 */
	public static final String SETGRIDID_OPEN = "SETGRIDID_OPEN";

	/**
	 * 全部重置
	 */
	public static final String RESET_ALL = "RESETALL";
	
	/**
	 * 特权卡
	 */
	public static final String SUPERID = "SUPERID";
	
	/**
	 * 所有配送仓状态
	 */
	public static final String ALL_BOX_STATUS = "allBoxStatus";
	
	/**
	 * 某个配送仓状态
	 */
	public static final String ONE_BOX_STATUS = "oneBoxStatus";
	
	/**
	 * 左LED
	 */
	public static final String LEFT_LED_MSG = "LEDMSGL";
	
	/**
	 * 右LED
	 */
	public static final String RIGHT_LED_MSG = "LEDMSGR";

	/**
	 * 读取广告信息
	 * 
	 * @param deviceSn 终端编号
	 * @param queryKey 查询关键字
	 * @return String
	 */
	public String queryAdMsg(String deviceSn, String queryKey);
	
	/**
	 * 远程状态查询
	 * 
	 * @param deviceSn 终端编号
	 * @param queryKey 查询关键字
	 * @param gridId 配送仓编号
	 * @return String
	 */
	public String queryRemoteState(String deviceSn, String queryKey, String gridId);
	
	/**
	 * 查询在线终端状态
	 * @param deviceSn 终端编号
	 * @return String
	 */
	public String queryOnlineDevice(String deviceSn);
}
